<%--
Created by IntelliJ IDEA.
User: sxlju_000
Date: 13-12-26
Time: 下午6:45
To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<table class="easyui-datagrid" id="${bean.lowerClassName}_table"
       data-options="rownumbers:true,url:'${bean.lowerClassName}/getGridData.do',method:'post',toolbar:'#${bean.lowerClassName}_toolbar',fit:true,border:false,pagination:true">
    <thead>
    <tr>
        <th data-options="field:'id',checkbox:true">id</th>
    <#list bean['fields'] as field>
        <#if field.columnUI != "">
        ${field.columnUI}
        </#if>
    </#list>
    </tr>
    </thead>
</table>
<div id="${bean.lowerClassName}_toolbar" class="toolbar" tableId="${bean.lowerClassName}_table">
    <div class="search_condition">
        <fieldset>
            <legend>查询条件</legend>
            <form action="javascript:void(0);">
                <ul>
                    <li>名称: &nbsp;&nbsp;<input type="text" name="name"/></li>
                    <li><input type="button" class="ui-radius-search table_search_button" style="width:50px;"
                               value="查询"/></li>
                </ul>
            </form>
            <div class="clear"></div>
        </fieldset>
    </div>
    <div style="margin-bottom:5px;padding:2px;">
        <input type="button" class="ui-radius-remove" id="${bean.lowerClassName}_delete_button"
               value="删除${bean.comment}"/>
        <input type="button" class="ui-radius-add" id="${bean.lowerClassName}_add_button" value="添加${bean.comment}"/>
        <input type="button" class="ui-radius-modify" id="${bean.lowerClassName}_modify_button"
               value="修改${bean.comment}"/>
        <input type="button" class="ui-default" id="${bean.lowerClassName}_view_button" value="查看${bean.comment}"/>
    </div>
</div>

<!--添加-->
<div id="${bean.lowerClassName}_add_window" class="easyui-window"
     data-options="title:'添加${bean.comment}',iconCls:'icon-save',modal:true,closed:true,minimizable:false"
     style="padding:10px 15px;width:500px;">

</div>

<!--修改-->
<div id="${bean.lowerClassName}_modify_window" class="easyui-window"
     data-options="title:'修改${bean.comment}',iconCls:'icon-save',modal:true,closed:true,minimizable:false"
     style="padding:10px 15px;width:500px;">

</div>

<!--查看-->
<div id="${bean.lowerClassName}_view_window" class="easyui-window"
     data-options="title:'查看${bean.comment}',iconCls:'icon-save',modal:true,closed:true,minimizable:false"
     style="padding:10px 15px;width:500px;">

</div>
<script type="text/javascript" src="/js/${bean.lowerClassName}/${bean.lowerClassName}.js"></script>

